<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMasterRecordSchoolsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('master_record_schools', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string("ma_code");
            $table->string("type")->comment("小学，初中，高中");
            $table->integer("indicators")->comment("属性指数");
            $table->date("record_date")->comment("记录日期");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('master_record_schools');
    }
}
